﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "..//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="..//www.w3.org/1999/xhtml">


<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="content-style-type" content="text/css"/>
    <meta name="keywords" content="51新炫舞,51新炫舞 夏日梦之星 评选大赛 "/>
    <meta name="description" content="51新炫舞 新炫舞 夏日梦之星 评选大赛 领导舞蹈游戏新潮流，最酷最炫的舞蹈游戏。"/>
    <title>新炫舞宝贝评选-51新炫舞官方活动专题</title>
    <link type="text/css" rel="stylesheet"
          href="<?php echo STATIC_FILE_URL; ?>/common/topbar/style/topbar.css<?php echo PROJECT_VERSION; ?>"
          media="all"/>
    <link type="text/css" rel="stylesheet"
          href="<?php echo STATIC_FILE_URL; ?>/common/topbar/style/shadeLayer.css<?php echo PROJECT_VERSION; ?>"
          media="all"/>
    <link type="text/css" rel="stylesheet" href="<?php echo CSS_URL; ?>style.css<?php echo PROJECT_VERSION; ?>"
          media="all"/>
    <link rel="stylesheet" type="text/css" href="<?php echo CSS_URL; ?>lytebox.css" media="screen"/>
</head>


<body>
<div id="wrapper">
    <div id="header01">
        <p><a class="a00" href="index.php?a=rule">活动流程</a></p>

        <p><a class="a01" href="index.php?a=rule">01&nbsp;报名&nbsp;上传照片、填写资料</a></p>

        <p><a class="a02" href="index.php?a=rule">02&nbsp;投票&nbsp;投他一票、为他拉票</a></p>

        <p><a class="a03" href="index.php?a=rule">03&nbsp;评选&nbsp;前500名获得奖品</a></p>
    </div>
    <div id="header02">
        <h1 title="51新炫舞官网"><a href="..//www.xx5.com">51新炫舞官网</a></h1>

        <p class="p01" title="夏日梦之星 评选大赛"><a href="index.php?a=index">夏日梦之星 评选大赛</a></p>

        <p class="p02" title="活动时间:2015年07月7日-2015年08月18日"><a href="index.php?a=index">活动时间:2015年07月09日-2015年08月18日</a>
        </p><!--标题Flash模块-->
        <?php if(isset($status_old) && $status_old < 4 && $status_old != NULL){
            echo $status_old ?>
            <div class="bonus" title="额外奖励"><a class="bonus"
                                               href="javascript:DMZ.expand.shadeLayer.init('alertBonus');"></a>
            </div><?php } ?>
        <div id="flaBox1" class="flaBox1"></div>
        <div id="flaBoxVideo" class="flaBox2">   <!--视屏模块-->

            <script type="text/javascript">
                var swf_width = '100%';
                var swf_height = '100%';
                var texts = '新炫舞宝贝评选';
                var files = '';
                document.write('<object classid="" codebase="" width="' + swf_width + '" height="' + swf_height + '">');
                document.write('<param name="movie" value=""><param name="quality" value="high">');
                document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
                document.write('<param name="FlashVars" value="vcastr_file=' + files + '&vcastr_title=' + texts + '">');
                document.write('<embed src="" wmode="opaque" FlashVars="vcastr_file=' + files + '&vcastr_title=' + texts + '& menu="false" quality="high" width="' + swf_width + '" height="' + swf_height + '" type="application/x-shockwave-flash" pluginspage="" />');
                document.write('</object>');
            </script>
        </div>
    </div>
    <!--id:header-->

    <div id="main">
        <div class="box1">
            <p class="p01"><a title="活动奖励" href="index.php?a=award">活动奖励</a></p>

            <p class="p02"><a title="梦之星排名" href="index.php?a=ranking">梦之星排名</a></p>

            <p class="p03"><a title="我要报名" href="index.php?a=sign">我要报名</a></p>

            <p class="p04"><a title="我的信息" href="index.php?a=userinfo">我的信息</a></p>

            <p class="p05"><a title="活动细则" href="index.php?a=rule">活动细则</a></p>
        </div>
        <div class="box2">
            <h2 title="夏日梦之星"><span>夏日梦之星&nbsp;推荐选手：玩家游戏截图</span></h2>

            <p><span><strong>报名时间: 2015年07月09日-2015年08月18日 投票时间:2015年07月18日-2015年08月18日</strong></span></p>
            <a class="more" href="http://act.xx5.com/2016/bbpx2016/index.php?a=ranking">more</a>
        </div>

        <div class="box3">
            <?php
            if(empty($ret)){
                //没有推荐的时候，显示宣传图片
                //echo '<img class="picture" src="'.PIC_URL.'picture01.jpg" alt="尽请期待"  />';
            }else{
                //推荐玩家4位<li></li>
                echo '<ul class="players">';
                foreach($ret as $value){
                    echo '<li class="player">';
                    echo '<p class="title"><span>昵称</span></p>';
                    /*
                    $vip = '';
                    if($value['vip_status']==1){
                        $vip = 'vip'.$value['vip'];
                        //echo '<span class="n_vip vip'.$value['vip'].'">vip'.$value['vip'].'</span>';
                    }*/

                    if($value['vip_status'] == 1){
                        echo '<p class="nickname"><span class="vip vip' . $value['vip'] . '"><i></i>' . $value['role_name'] . '</span></p>';
                    }else{
                        echo '<p class="nickname"><span>' . $value['role_name'] . '</span></p>';
                    }
                    //echo '<p class="nickname"><span>'.$vip.$value['role_name'].'</span></p>';
                    //3张图片
                    echo '<div class="photo">';
                    echo '<ul class="cFix">';
                    echo '<li><a href="' . $value['pic1'] . '" rel="lytebox[vacation' . $value['uin'] . ']"><img src="' . $value['pic1'] . '" alt="" onload="if (this.width&gt;203) this.width=203;if (this.height &gt; 185) this.height=185;"  /></a></li>';
                    echo '<li><a href="' . $value['pic2'] . '" rel="lytebox[vacation' . $value['uin'] . ']"><img src="' . $value['pic2'] . '" alt="" onload="if (this.width&gt;203) this.width=203;if (this.height &gt; 185) this.height=185;"  /></a></li>';
                    echo '<li><a href="' . $value['pic3'] . '" rel="lytebox[vacation' . $value['uin'] . ']"><img src="' . $value['pic3'] . '" alt="" onload="if (this.width&gt;203) this.width=203;if (this.height &gt; 185) this.height=185;"  /></a></li>';
                    echo '</ul>';
                    echo '</div>';
                    echo '<div class="ballot"><p class="s01" >票数：<span id="id' . $value['uin'] . '">' . $value['vote'] . '</span></p><span class="s02">' . $value['zone_id'] . '</span></div>';
                    echo '<p class="btns">';
                    echo '<a class="vote" href="javascript:vote(' . $value['uin'] . ');">投Ta一票</a>';
                    echo '<a class="give" href="javascript:alertBuy(' . $value['uin'] . ');">送玫瑰</a>';
                    ?>
                    <a class="share" href="javascript:DMZ.expand.shadeLayer.init('alertShare');">分享</a>
                    <?php

                    echo '</p>';
                    echo '<p class="declaration"><span><strong><font color="#ef3bff">参赛宣言：</font></strong><br />' . $value['brand'] . '</span></p>';
                    echo '</li>';
                }
                echo '</ul>';
            }
            ?>
        </div>
        <div class="box4">
            <ul class="prizelist">
                <li class="prize01" title="Iphone 6 Plus"><span>Iphone 6 Plus</span></li>
                <li class="prize02" title="Ipad mini3"><span>Ipad mini3</span></li>
                <li class="prize03" title="绝版游戏特殊称号"><span>绝版游戏特殊称号</span></li>
                <li class="prize04" title="梦幻之星非卖光效 套装"><span>梦幻之星非卖光效 套装</span></li>
                <li class="prize05" title="光芒四射(蓝) 非卖翅膀"><span>光芒四射(蓝) 非卖翅膀</span></li>
                <?php
                if($show_rank == 0){
                    //未开始投票，奖品展示
                    echo '<li class="prize06" title="PIKU公仔"><span>PIKU公仔</span></li>';
                }
                ?>
            </ul>
            <p class="more" title="查看更多奖品"><a href="index.php?a=award">查看更多奖品</a></p>
        </div>
        <?php
        if($show_rank == 1){
            ?>
            <div class="box5">
                <div class="ranklist_tittle" title="梦之星排行榜"></div>
                <div class="ranklist">
                    <div class="ranklist_l">
                        <ul>
                            <?php
                            echo $index_rank;//$index_rank处理<li>
                            ?>
                        </ul>
                    </div>
                </div>
            </div>
        <?php } ?>
    </div>

    <!--main-->
    <div id="footer">
        <div id="copyright">
            <ul>
                <li class="w1"><a target="_blank" title="关于游戏" href="..//www.xx5.com/diypage-about_game.html">关于游戏</a>
                </li>
                <li class="w2"><a href="..//www.xx5.com/guide/guide.htm" title="新手指南" target="_blank">新手指南</a></li>
                <li class="w3"><a href="..//www.xx5.com/jiazhang" title="家长监控" target="_blank">家长监控</a></li>
                <li class="w4"><a title="客服中心"
                                  onclick="javascript:window.open('..//b.qq.com/webc.htm?new=0&amp;sid=800082051&amp;eid=2188z8p8p8p8z8K8p8R8q&amp;o=&amp;q=7&amp;ref='+document.location, '_blank', 'height=544, width=644,toolbar=no,scrollbars=no,menubar=no,status=no');"
                                  href="javascript:void(0);">客服中心</a></li>
            </ul>
            <div class="xkz"><a title="网络文化经营许可证号（文网文号）：文网文[2008]241号" target="_blank"
                                href="..//static.51img1.com/game/images/c_game_www.jpg">网络文化经营许可证号（文网文号）：文网文[2008]241号</a>
            </div>
        </div>
        <!--id:copyright-->
    </div>
    <!--id:footer-->
</div>
<!--id:wrapper-->

<div id="scrollQQ"><span
        onclick="javascript:window.open('..//b.qq.com/webc.htm?new=0&sid=800002116&eid=2188z8p8p8p8p8K8q8q8x&o=&q=7&ref='+document.location, '_blank', 'height=544, width=644,toolbar=no,scrollbars=no,menubar=no,status=no');"></span>

    <p>时间：24小时服务 <br/>
        企业QQ：800082051</p>
</div>

<div class="popupbox " id="alertBonus" style="display:none;">
    <div class="warning">
        <div class="tip">
            <div class="tiptop tit_alert">
                <div class="tit_sfconf" id="alertTips">奖励补偿提示</div>
                <a href="javascript:DMZ.expand.shadeLayer.closed();" class="btn-close"></a></div>
            <div class="tipbox tipalert01" id="alertContent">
                <form method="post" name="mytelForm" onsubmit="checktelForm();">
                    <table cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                        <tr>
                            <td><!--系统提示-->
                                <div class="alertInfo01">
                                    <p class="info01">再次报名审核通过，有更丰厚奖励哦~</p>

                                    <div class="bonus">
                                        <a class="s1" href="http://act.xx5.com/2015/xrzx/?a=sendComPrize">补偿奖励领取</a>

                                        <p class="info02">亲，由于官网数据问题导致图片缺失，给予您补偿奖励</p>
                                        <a class="s2" href="http://act.xx5.com/2015/xrzx/index.php?a=sign">我要报名</a>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>
<!--alertID-->
<!--分享-->
<div class="popupbox " id="alertShare" style="display:none;">
    <div class="warning">
        <div class="tip">
            <div class="tiptop tit_alert">
                <div class="tit_sfconf" id="alertTips">分享提示</div>
                <a href="javascript:DMZ.expand.shadeLayer.closed();" class="btn-close"></a></div>
            <div class="tipbox tipalert" id="alertContent">
                <form method="post" name="mytelForm" onsubmit="checktelForm();">
                    <table cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                        <tr>
                            <td><!--系统提示-->
                                <div class="alertInfo">
                                    <p>想让更多人知道谁是你的夏日梦之星吗？那就赶紧分享到微博为他们拉票吧~</p>

                                    <div class="share"><a target="_blank" class="s1"
                                                          href="http://www.jiathis.com/send/?webid=tsina&url=<?php echo $sendurl; ?>&title=<?php echo urlencode($content); ?>">分享到新浪微博</a>
                                        <a target="_blank" class="s2"
                                           href="http://www.jiathis.com/send/?webid=tqq&url=<?php echo $sendurl; ?>&title=<?php echo urlencode($content); ?>">分享到腾讯微博</a>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>
<!--分享-->
<!-- 送玫瑰投票的弹窗信息 -->
<div class="popupbox " id="alertBuy" style="display:none;">
    <div class="warning">
        <div class="tip">
            <div class="tiptop tit_alert">
                <div class="tit_sfconf" id="alertTips">赠送玫瑰</div>
                <a href="javascript:DMZ.expand.shadeLayer.closed();" class="btn-close"></a></div>
            <div class="tipbox tipalert" id="alertContent">
                <form method="post" name="mytelForm" onsubmit="checktelForm();">
                    <table cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                        <tr>
                            <td><!--系统提示-->
                                <div class="alertInfo alertBuy" style="display: ">
                                    <p class="p0t"><span>亲，您共购买&nbsp;</span><input type="text" value="" id="buycount"
                                                                                   onkeyup="changecount(this);"
                                                                                   maxlength="5" class="i01"/><span>&nbsp;朵玫瑰</span>
                                    </p>

                                    <p class="p0t"><span>需扣除游戏内&nbsp;<strong><font color="#f00"
                                                                                   id="usemoney">0</font></strong>&nbsp;51点，当前剩余&nbsp;<strong><font
                                                    color="#f00" id="money"><?php echo $money; ?></font></strong>&nbsp;51点</span>
                                    </p>

                                    <div class="btnbox"><a href="javascript:buyApple();" class="btn_yz">确 认</a></div>
                                    <input type="hidden" value="0" id="userid">
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
    <!--warning-->
</div>
<!-- 送苹果投票的弹窗信息 -->

<!-- 提示信息 -->
<div class="popupbox " id="alertID" style="display:none;">
    <div class="warning">
        <div class="tip">
            <div class="tiptop tit_alert">
                <div class="tit_sfconf" id="alertTips">提示</div>
                <a href="javascript:DMZ.expand.shadeLayer.closed();" class="btn-close"></a></div>
            <div class="tipbox tipalert" id="alertContent">
                <form method="post" name="mytelForm" onsubmit="checktelForm();">
                    <table cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                        <tr>
                            <td><!--系统提示-->
                                <div class="alertInfo" style="display: ">
                                    <p class="p0t" id="alert_msg"></p>

                                    <div class="btnbox"><a href="javascript:DMZ.expand.shadeLayer.closed();"
                                                           class="btn_yz">确 认</a></div>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
    <!--warning-->
</div>
<!-- 提示信息 -->
<!--alertID-->

<!-- 登录 -->
<?php
echo AlertLogin();
echo AlertSelectZone();
?>
<!--登录-->

<script type="text/javascript" src="<?php echo STATIC_FILE_URL; ?>/js/jquery.js<?php echo PROJECT_VERSION; ?>"></script>
<script type="text/javascript" src="<?php echo STATIC_FILE_URL; ?>/js/extra.js<?php echo PROJECT_VERSION; ?>"></script>
<script type="text/javascript"
        src="<?php echo STATIC_FILE_URL; ?>/common/topbar/js/topbar.js<?php echo PROJECT_VERSION; ?>"></script>
<script type="text/javascript"
        src="<?php echo STATIC_FILE_URL; ?>/common/topbar/js/actTopbar-init.js<?php echo PROJECT_VERSION; ?>"></script>
<script type="text/javascript" src="<?php echo JS_URL; ?>function.js<?php echo PROJECT_VERSION; ?>"></script>
<script type="text/javascript" src="<?php echo JS_URL; ?>page_v7_ajax.js<?php echo PROJECT_VERSION; ?>"></script>
<script type="text/javascript" src="<?php echo JS_URL; ?>pgmx.js<?php echo PROJECT_VERSION; ?>"></script>
<script type="text/javascript" src="<?php echo JS_URL; ?>lytebox.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        scrollBox();
        autoHoverScroll();
        AutoTaskScroll('#listbox01', 3000, 800);
    })

    $('#flaBox1').html(DMZ.expand.showFlashObject('fla_object', '<?php echo PIC_URL,'ad_show.swf',PROJECT_VERSION;?>', '100%', '100%', '', '', '', ''));
    $('#flaBoxVideo').html(DMZ.expand.showFlashObject('fla_object2', 'http://video.xx5.com/2015/07/0706/main.swf', '100%', '100%', '', '', '', ''));
    //顶部
    //var jsondata = {u:'',url:{login:'',reg:'',exit:''},fn: function(){ $('.miniNav-ustate li').filter(':lt(2)').remove();} };
    //miniNav.userState(jsondata);
    var user = '<?php echo empty($_SESSION['LoginUser']) || empty($_SESSION['UIN']) || empty($_SESSION[DOMAIN_ACT_ZONEID_KEY]) ? '' : $_SESSION['LoginUser']; ?>';
    var logout = "index.php?a=logout&jumpto=<?php echo urlencode(DOMAIN_URL); ?>";
    var jsondata = {
        u  : user,
        url: {
            login: '',
            reg  : 'http://passport.xx5.com/register/',
            exit : logout
        },
        fn : function(){
        }
    };
    miniNav.userState(jsondata);
    var uState = $('.miniNav-ustate li');
    var signin = uState.eq(0);
    var signout = uState.eq(1);
    if(user){
        signin.hide();
        signout.show().children('span').text(user);
        signout.children('a[rel=miniNav-exit]').attr('target', '_self');
    }else{
        signout.hide();
        signin.show();
        signin.children('a[rel=miniNav-login]').attr('href', 'javascript:void(0);').attr('target', '_self').click(function(){
            DMZ.expand.shadeLayer.init('loginform');
            $('#username2').focus();
        });
    }

    //xrmzx  function
    function vote(id){
        var vote = $("#id" + id).html();
        if(user){
            $.ajax({
                type    : "POST",
                data    : 'id=' + id,
                url     : "<?php echo DOMAIN_URL?>/index.php?a=vote",
                dataType: "json",
                success : function(msg){
                    if(msg.success == 2){
                        DMZ.expand.shadeLayer.init('loginform');
                        return;
                    }
                    $("#alert_msg").html(msg.msg);
                    DMZ.expand.shadeLayer.init('alertID');
                    if(msg.success == 3){
                        var newvote = parseInt(vote) + 1;
                        $("#id" + id).html(newvote);
                    }
                }
            });
        }else{
            DMZ.expand.shadeLayer.init('loginform');
        }
    }

    function alertBuy(id){
        if(user){
            $("#usemoney").html('');
            $('#buycount').val(0);
            $('#buyTips').remove();
            $("#userid").val(id);
            DMZ.expand.shadeLayer.init('alertBuy');
        }else{
            DMZ.expand.shadeLayer.init('loginform');
        }
    }

    function changecount(obj){
        $('#buyTips').remove();
        var pev_value = $(obj).val();
        var t_value = pev_value.replace(/[^\d]/g, '');
        t_value = Number(t_value);
        $(obj).val(t_value);
        var useMoney = ($(obj).val()) * 2;
        var oldMoney = $('#money').html();
        if(isNaN(t_value) || t_value < null){
            $("#usemoney").html(0);
            return;
        }else if(useMoney > oldMoney){
            var content = '<p class="tips" id="buyTips"><span class="fontW">亲~您的51点不足!</span></p>';
            $(content).insertAfter('#buymsg');
            $("#usemoney").html(useMoney);
            return;
        }else{
            $("#usemoney").html(useMoney);
        }
    }

    function buyApple(){
        var id = $("#userid").val();
        var num = $("#buycount").val();
        var vote = $("#id" + id).html();
        if(user){
            $.ajax({
                type    : "POST",
                data    : 'id=' + id + '&num=' + num,
                url     : "<?php echo DOMAIN_URL?>/index.php?a=buyApple",
                dataType: "json",
                success : function(msg){
                    DMZ.expand.shadeLayer.closed();
                    if(msg.success == 2){
                        DMZ.expand.shadeLayer.init('loginform');
                        return;
                    }
                    $("#alert_msg").html(msg.msg);
                    DMZ.expand.shadeLayer.init('alertID');
                    if(msg.success == 3){
                        var newvote = parseInt(vote) + parseInt(num);
                        $("#money").html(msg.money);
                        $("#id" + id).html(newvote);
                    }
                }
            });
        }else{
            DMZ.expand.shadeLayer.closed();
            DMZ.expand.shadeLayer.init('loginform');
        }
    }
    //选区的弹框中，调用js函数selectZone(选择的大区号)，传给php的saveSelectZone存储登录信息
    function selectZone(k){
        $.post('./index.php?a=saveSelectZone', {'k': k}, function(data){
            if(data.success == 1){
                location.href = "<?php echo DOMAIN_URL?>";
            }else if(data.success == 0){
                DMZ.expand.shadeLayer.init('loginform');
            }else{
                alert(data.msg);
            }

        }, 'json');
    }

    <?php
    //判断已经有SESSION['uin']   &&   没有SESSION['zoneid']  弹窗选大区
    if( empty($_SESSION[DOMAIN_ACT_ZONEID_KEY]) && isset($_SESSION[__CORE_USER_UIN__]) ){
        echo 'DMZ.expand.shadeLayer.init(\'alertSelectZone\')';
    }
    ?>

</script>
</body>
</html>

